package com.primb.bench.project.home.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Chen on 2017/5/9.
 * 功能描述：贷款测算信息实体类
 */

public class LoanCalculateInfoEntityCopy implements Parcelable {
    /**
     * 定价标识信息
     */
    String logoNumber; //定价流水号
    String logoProtocolType;//协议类型
    String logoProtocolNum;//协议号
    String logoManagerName;//客户经理名称
    String logoManagerNum;//客户经理号
    String logoPart;//机构
    String logoDate;//日期

    /**
     * 客户基本信息
     */
    String customerName;//客户名称
    String customerNum;//客户编号
    String customerType;//客户类型
    String customerCredit;//客户信用等级
    String customerSize;//客户规模
    String customerContributionNum;//可用贡献点
    String customerAdjustRate;//违约概率调整
    boolean isCustomerInfoEmpty = true;

    /**
     * 贷款基本信息
     */
    String loanMoney;//贷款金额
    String loanDate;//贷款期限
    String loanType;//贷款类型
    String loanBusinessType;//贷款业务类型
    String loanIndustry;//贷款投向行业
    String loanRateType;//利率类型
    String loanPart;//贷款机构
    String loanBp;//贴现业务风险溢价（BP）
    boolean isLoanInfoEmpty = true;

    /**
     * 担保信息
     */
    String ensureMainType;//主担保方式
    String ensureConcretenessType;//具体担保方式
    String ensureMoney;//担保金额
    boolean isEnsureInfoEmpty = true;

    /**
     * 税收信息
     */
    String taxIndex;//
    String taxType;//

    /**
     * 定价测算结果
     */
    String resultAllCostRate;//全成本利率
    String resultChangeCostRate;//变动成本利率
    String resultTargetRate;//目标利率
    String resultDirectRate;//指导利率
    String resultReferenceRate;//市场参考利率
    String resultAllProfit;//毛利润
    String resultDirectEva;//指导利率EVA
    String resultDirectRaroc;//指导利率RAROC

    public String getResultAllCostRate() {
        return resultAllCostRate;
    }

    public void setResultAllCostRate(String resultAllCostRate) {
        this.resultAllCostRate = resultAllCostRate;
    }

    public String getResultAllProfit() {
        return resultAllProfit;
    }

    public void setResultAllProfit(String resultAllProfit) {
        this.resultAllProfit = resultAllProfit;
    }

    public String getResultChangeCostRate() {
        return resultChangeCostRate;
    }

    public void setResultChangeCostRate(String resultChangeCostRate) {
        this.resultChangeCostRate = resultChangeCostRate;
    }

    public String getResultDirectEva() {
        return resultDirectEva;
    }

    public void setResultDirectEva(String resultDirectEva) {
        this.resultDirectEva = resultDirectEva;
    }

    public String getResultDirectRaroc() {
        return resultDirectRaroc;
    }

    public void setResultDirectRaroc(String resultDirectRaroc) {
        this.resultDirectRaroc = resultDirectRaroc;
    }

    public String getResultDirectRate() {
        return resultDirectRate;
    }

    public void setResultDirectRate(String resultDirectRate) {
        this.resultDirectRate = resultDirectRate;
    }

    public String getResultReferenceRate() {
        return resultReferenceRate;
    }

    public void setResultReferenceRate(String resultReferenceRate) {
        this.resultReferenceRate = resultReferenceRate;
    }

    public String getResultTargetRate() {
        return resultTargetRate;
    }

    public void setResultTargetRate(String resultTargetRate) {
        this.resultTargetRate = resultTargetRate;
    }

    public String getTaxIndex() {
        return taxIndex;
    }

    public void setTaxIndex(String taxIndex) {
        this.taxIndex = taxIndex;
    }

    public String getTaxType() {
        return taxType;
    }

    public void setTaxType(String taxType) {
        this.taxType = taxType;
    }

    public String getCustomerAdjustRate() {
        return customerAdjustRate;
    }

    public void setCustomerAdjustRate(String customerAdjustRate) {
        this.customerAdjustRate = customerAdjustRate;
    }

    public String getCustomerContributionNum() {
        return customerContributionNum;
    }

    public void setCustomerContributionNum(String customerContributionNum) {
        this.customerContributionNum = customerContributionNum;
    }

    public String getCustomerCredit() {
        return customerCredit;
    }

    public void setCustomerCredit(String customerCredit) {
        this.customerCredit = customerCredit;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerNum() {
        return customerNum;
    }

    public void setCustomerNum(String customerNum) {
        this.customerNum = customerNum;
    }

    public String getCustomerSize() {
        return customerSize;
    }

    public void setCustomerSize(String customerSize) {
        this.customerSize = customerSize;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public String getEnsureConcretenessType() {
        return ensureConcretenessType;
    }

    public void setEnsureConcretenessType(String ensureConcretenessType) {
        this.ensureConcretenessType = ensureConcretenessType;
    }

    public String getEnsureMainType() {
        return ensureMainType;
    }

    public void setEnsureMainType(String ensureMainType) {
        this.ensureMainType = ensureMainType;
    }

    public String getEnsureMoney() {
        return ensureMoney;
    }

    public void setEnsureMoney(String ensureMoney) {
        this.ensureMoney = ensureMoney;
    }

    public boolean isCustomerInfoEmpty() {
        return isCustomerInfoEmpty;
    }

    public void setCustomerInfoEmpty(boolean customerInfoEmpty) {
        isCustomerInfoEmpty = customerInfoEmpty;
    }

    public boolean isEnsureInfoEmpty() {
        return isEnsureInfoEmpty;
    }

    public void setEnsureInfoEmpty(boolean ensureInfoEmpty) {
        isEnsureInfoEmpty = ensureInfoEmpty;
    }

    public boolean isLoanInfoEmpty() {
        return isLoanInfoEmpty;
    }

    public void setLoanInfoEmpty(boolean loanInfoEmpty) {
        isLoanInfoEmpty = loanInfoEmpty;
    }

    public String getLoanBp() {
        return loanBp;
    }

    public void setLoanBp(String loanBp) {
        this.loanBp = loanBp;
    }

    public String getLoanBusinessType() {
        return loanBusinessType;
    }

    public void setLoanBusinessType(String loanBusinessType) {
        this.loanBusinessType = loanBusinessType;
    }

    public String getLoanDate() {
        return loanDate;
    }

    public void setLoanDate(String loanDate) {
        this.loanDate = loanDate;
    }

    public String getLoanIndustry() {
        return loanIndustry;
    }

    public void setLoanIndustry(String loanIndustry) {
        this.loanIndustry = loanIndustry;
    }

    public String getLoanMoney() {
        return loanMoney;
    }

    public void setLoanMoney(String loanMoney) {
        this.loanMoney = loanMoney;
    }

    public String getLoanPart() {
        return loanPart;
    }

    public void setLoanPart(String loanPart) {
        this.loanPart = loanPart;
    }

    public String getLoanRateType() {
        return loanRateType;
    }

    public void setLoanRateType(String loanRateType) {
        this.loanRateType = loanRateType;
    }

    public String getLoanType() {
        return loanType;
    }

    public void setLoanType(String loanType) {
        this.loanType = loanType;
    }

    public String getLogoManagerName() {
        return logoManagerName;
    }

    public void setLogoManagerName(String logoManagerName) {
        this.logoManagerName = logoManagerName;
    }

    public String getLogoManagerNum() {
        return logoManagerNum;
    }

    public void setLogoManagerNum(String logoManagerNum) {
        this.logoManagerNum = logoManagerNum;
    }

    public String getLogoDate() {
        return logoDate;
    }

    public void setLogoDate(String logoDate) {
        this.logoDate = logoDate;
    }

    public String getLogoNumber() {
        return logoNumber;
    }

    public void setLogoNumber(String logoNumber) {
        this.logoNumber = logoNumber;
    }

    public String getLogoPart() {
        return logoPart;
    }

    public void setLogoPart(String logoPart) {
        this.logoPart = logoPart;
    }

    public String getLogoProtocolNum() {
        return logoProtocolNum;
    }

    public void setLogoProtocolNum(String logoProtocolNum) {
        this.logoProtocolNum = logoProtocolNum;
    }

    public String getLogoProtocolType() {
        return logoProtocolType;
    }

    public void setLogoProtocolType(String logoProtocolType) {
        this.logoProtocolType = logoProtocolType;
    }

    public LoanCalculateInfoEntityCopy() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.logoNumber);
        dest.writeString(this.logoProtocolType);
        dest.writeString(this.logoProtocolNum);
        dest.writeString(this.logoManagerName);
        dest.writeString(this.logoManagerNum);
        dest.writeString(this.logoPart);
        dest.writeString(this.logoDate);
        dest.writeString(this.customerName);
        dest.writeString(this.customerNum);
        dest.writeString(this.customerType);
        dest.writeString(this.customerCredit);
        dest.writeString(this.customerSize);
        dest.writeString(this.customerContributionNum);
        dest.writeString(this.customerAdjustRate);
        dest.writeByte(this.isCustomerInfoEmpty ? (byte) 1 : (byte) 0);
        dest.writeString(this.loanMoney);
        dest.writeString(this.loanDate);
        dest.writeString(this.loanType);
        dest.writeString(this.loanBusinessType);
        dest.writeString(this.loanIndustry);
        dest.writeString(this.loanRateType);
        dest.writeString(this.loanPart);
        dest.writeString(this.loanBp);
        dest.writeByte(this.isLoanInfoEmpty ? (byte) 1 : (byte) 0);
        dest.writeString(this.ensureMainType);
        dest.writeString(this.ensureConcretenessType);
        dest.writeString(this.ensureMoney);
        dest.writeByte(this.isEnsureInfoEmpty ? (byte) 1 : (byte) 0);
        dest.writeString(this.taxIndex);
        dest.writeString(this.taxType);
        dest.writeString(this.resultAllCostRate);
        dest.writeString(this.resultChangeCostRate);
        dest.writeString(this.resultTargetRate);
        dest.writeString(this.resultDirectRate);
        dest.writeString(this.resultReferenceRate);
        dest.writeString(this.resultAllProfit);
        dest.writeString(this.resultDirectEva);
        dest.writeString(this.resultDirectRaroc);
    }

    protected LoanCalculateInfoEntityCopy(Parcel in) {
        this.logoNumber = in.readString();
        this.logoProtocolType = in.readString();
        this.logoProtocolNum = in.readString();
        this.logoManagerName = in.readString();
        this.logoManagerNum = in.readString();
        this.logoPart = in.readString();
        this.logoDate = in.readString();
        this.customerName = in.readString();
        this.customerNum = in.readString();
        this.customerType = in.readString();
        this.customerCredit = in.readString();
        this.customerSize = in.readString();
        this.customerContributionNum = in.readString();
        this.customerAdjustRate = in.readString();
        this.isCustomerInfoEmpty = in.readByte() != 0;
        this.loanMoney = in.readString();
        this.loanDate = in.readString();
        this.loanType = in.readString();
        this.loanBusinessType = in.readString();
        this.loanIndustry = in.readString();
        this.loanRateType = in.readString();
        this.loanPart = in.readString();
        this.loanBp = in.readString();
        this.isLoanInfoEmpty = in.readByte() != 0;
        this.ensureMainType = in.readString();
        this.ensureConcretenessType = in.readString();
        this.ensureMoney = in.readString();
        this.isEnsureInfoEmpty = in.readByte() != 0;
        this.taxIndex = in.readString();
        this.taxType = in.readString();
        this.resultAllCostRate = in.readString();
        this.resultChangeCostRate = in.readString();
        this.resultTargetRate = in.readString();
        this.resultDirectRate = in.readString();
        this.resultReferenceRate = in.readString();
        this.resultAllProfit = in.readString();
        this.resultDirectEva = in.readString();
        this.resultDirectRaroc = in.readString();
    }

    public static final Creator<LoanCalculateInfoEntityCopy> CREATOR = new Creator<LoanCalculateInfoEntityCopy>() {
        @Override
        public LoanCalculateInfoEntityCopy createFromParcel(Parcel source) {
            return new LoanCalculateInfoEntityCopy(source);
        }

        @Override
        public LoanCalculateInfoEntityCopy[] newArray(int size) {
            return new LoanCalculateInfoEntityCopy[size];
        }
    };
}
